<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <div class="header-warp">
          <div class="warp">
            <img src="../../../assets/images/home/my-project.png" />
          </div>
          <div class="header-word">我的项目</div>
        </div>
        <div class="more">更多></div>
      </div>
    </template>
    <div class="table-box">
      <avue-crud
        headerCellClassName="bg-white"
        :option="option"
        :data="data"
        ref="crud"
      >
      </avue-crud>
    </div>
  </el-card>
</template>

<script>
import blueCircle from '@/assets/images/home/guide/blue-circle.png';
export default {
  name: 'my-project',
  data() {
    return {
      blueCircle,
      data: [],
      option: {
        height: 'auto',
        calcHeight: 32,
        tip: false,
        border: false,
        searchShow: false,
        editBtn: false,
        addBtn: false,
        viewBtn: false,
        delBtn: false,
        dialogWidth: 900,
        menuWidth: 220,
        menu: false,
        dialogClickModal: false,
        size: 'default',
        header: false,
        column: [
          {
            label: '项目名称',
            prop: 'id',
            width: 400,
          },
          {
            label: '年度',
            prop: 'modelKey',
            overHidden: true,
          },
          {
            label: '项目状态',
            prop: 'name',
            overHidden: true,
          },
          {
            label: '被审计单位',
            prop: 'version',
            slot: true,
            overHidden: true,
          },
          {
            label: '实施单位',
            prop: 'created',
            overHidden: true,
          },
        ],
      },
    };
  },
  methods: {
    handleChange(val) {
      window.console.log(val);
    },
  },
};
</script>

<style scoped lang="scss">

:deep(.bg-white){
  background-color: #ffffff !important;
  border: 0 !important;
}
.table-box {
  padding-left: 40px;
}
.card-header {
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f2f2f2;
  height: 47px;
  padding: 0 20px;
  .more {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #a4a5a9;
    cursor: pointer;
  }
}

:deep(.el-card__header) {
  padding: 0;
  background-color: #ffffff !important;
}
.header-warp {
  display: flex;
  .warp {
    margin-right: 7px;
    width: 16px;
    height: 16px;
    padding-top: 2px;
  }
  .header-word {
    font-weight: 700;
  }
}
.content-director {
  padding: 20px;
  .director-head {
    margin-bottom: 11px;
    display: flex;
    .director-round {
      width: 12px;
      height: 12px;
      margin-right: 10px;
    }
    .director-word {
      font-size: 14px;
      font-weight: 700;
    }
  }
}
.content-group-leader {
  padding: 0 20px;
  .group-leader-head {
    display: flex;
    margin-bottom: 11px;
    .group-leader-round {
      width: 12px;
      height: 12px;
      margin-right: 10px;
    }
    .group-leader-word {
      font-size: 14px;
      font-weight: 700;
    }
  }
}
.examine-approve {
  width: 122px;
  height: 60px;
  background: #f9fafb;
  border-radius: 2px;
  .examine-approve-card {
    display: flex;
    padding-top: 15px;
    .examine-approve-round {
      width: 15px;
      height: 15px;
      margin-right: 3px;
      padding: 3px 0 0 6px;
    }
    .examine-approve-word {
      font-size: 12px;
      font-weight: 700;
    }
  }
  .step {
    font-size: 12px;
    margin: 3px 0 0 24px;
    color: #9da2a8;
  }
}
</style>
